<include file="__PUBLIC__/head.php">
	<title>友链列表</title>
</head>



<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'index'}" class="act"><i class="icon-link mr3 gray"></i>友链管理</a>
		<a href="{|U:'add'}" class="_add"><i class="icon-plus mr3 gray"></i>添加友链</a>
		<a href="{|U:'updateCache'}" class="ajax" actUrl="{|U('index')}"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tc">lid</th>
				<th class="pct25">友链名称</th>
				<th class="">链接地址</th>
				<th class="pct20 tc">操作</th>
			</tr>
			<foreach from="$link" value="$l">
				<tr>
					<td class='tc'><span class="b gray2">{$l.lid}</span></td>
					<td class=''><span class="ainput" _name="name" lid="{$l.lid}" post="{|U:'_ajax'}">{$l.name}</span></td>
					<td class='f14 fv'><span class="ainput" _name="url" lid="{$l.lid}" post="{|U:'_ajax'}">{$l.url}</span></td>
					<td class='tc'>
						<a href="{|U:'del'}" lid="{$l.lid}" class="a bgwhite _dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删除</a>
					</td>
				</tr>
			</foreach>
		</table>
		<div class="p10 page mt10">{$page}</div>
	</div>



	<div id="add" class="dn">
		<form action="{|U('add')}" method="post" enctype="multipart/form-data">
			<table class="table form">
				<th colspan="2">添加链接</th>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">友链标题</span></td>
					<td><input class="pct80" type="text" name="name"  /></td>
				</tr>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">跳转地址</span></td>
					<td><input class="pct90" type="text" name="url" value="http://"  /></td>
				</tr>
			</table>
			<div class="mt10 tc fm"><input type="submit" class="btn bgblack f20" value='确定操作' /></div>
		</form>
	</div>







<include file="__PUBLIC__/bottom.php">